package com.naiterui.ehp.bp.domain;

// default package

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
* 
*/
@Entity
@Table(name = "dr_device")
public class DeviceToken implements Serializable {

    private static final long serialVersionUID = 4888178427752521757L;
    private Long id;
    private Long userId;
    private String deviceToken;
    private Integer type;
    private Integer status;
    private String appVersion;
    private String appPlatform;
    private String operateVersion;
    private Date createdAt;
    private Date changedAt;
    private Integer noticeType;

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * id : 主键
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Long getId() {
        return this.id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * userId : 用户id
     */
    @Column(name = "user_id")
    public Long getUserId() {
        return this.userId;
    }

    public void setDeviceToken(String deviceToken) {
        this.deviceToken = deviceToken;
    }

    /**
     * deviceToken : token
     */
    @Column(name = "device_token", length = 200)
    public String getDeviceToken() {
        return this.deviceToken;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * type : 类型：0互联网医院医生
     */
    @Column(name = "type", length = 11)
    public Integer getType() {
        return this.type;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * status : 状态：0正常，1:关闭
     */
    @Column(name = "status", length = 11)
    public Integer getStatus() {
        return this.status;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    /**
     * appVersion : 应用版本
     */
    @Column(name = "app_version", length = 256)
    public String getAppVersion() {
        return this.appVersion;
    }

    public void setAppPlatform(String appPlatform) {
        this.appPlatform = appPlatform;
    }

    /**
     * appPlatform : 应用平台
     */
    @Column(name = "app_platform", length = 256)
    public String getAppPlatform() {
        return this.appPlatform;
    }

    public void setOperateVersion(String operateVersion) {
        this.operateVersion = operateVersion;
    }

    /**
     * operateVersion : 操作系统版本
     */
    @Column(name = "operate_version", length = 256)
    public String getOperateVersion() {
        return this.operateVersion;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * createdAt : 创建时间
     */
    @Column(name = "created_at")
    public Date getCreatedAt() {
        return this.createdAt;
    }

    public void setChangedAt(Date changedAt) {
        this.changedAt = changedAt;
    }

    /**
     * changedAt : 修改时间
     */
    @Column(name = "changed_at")
    public Date getChangedAt() {
        return this.changedAt;
    }

    /**
     * notice_type : 通知类型,0生产，1测试
     */
    @Column(name = "notice_type", length = 11)
    public Integer getNoticeType() {
        return this.noticeType;
    }

    public void setNoticeType(Integer noticeType) {
        this.noticeType = noticeType;
    }
}
